package com.example.hospital.service;

import com.example.model.domain.entity.hospital.Hospital;
import com.example.model.vo.hospital.HospitalQueryVo;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @Author juzipi
 * @Date 2021/7/10 11:10
 * @Info
 */
public interface HospitalService {


    /**
     * 签名校验
     * @param hospitalSign
     * @param hospitalCode
     * @return
     */
    Boolean compareHospitalSign(Object hospitalSign, Object hospitalCode);


    /**
     * 保存医院
     * @param parameterMap
     * @return
     */
    Boolean insertHospital(Map<String, Object> parameterMap);

    /**
     * 查询医院
     * @param hospitalCode
     * @return
     */
    Hospital getHospitalByHoscode(String hospitalCode);

    /**
     * 查询医院分页
     * @param pageNum
     * @param pageSize
     * @param hospitalQueryVo
     * @return
     */
    PageInfo<Hospital> getHospitalPage(Integer pageNum, Integer pageSize, HospitalQueryVo hospitalQueryVo);

    /**
     * 更新医院上线状态
     * @param id
     * @param status
     * @return
     */
    Boolean updateHospitalStatus(String id, Integer status);

    /**
     * 查询医院详情
     * @param id
     * @return
     */
    Map<String, Object> getHospitalDetailById(String id);

    /**
     * 根据医院名字查出医院集合
     * @param hosname
     * @return
     */
    List<Hospital> getHospitalByHosname(String hosname);


    /**
     * 根据医院编号查询医院详情
     * @param hoscode
     * @return
     */
    Map<String, Object> getHospitalDetailByHoscode(String hoscode);



}
